﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Shell;
using System.ComponentModel.Design;

namespace Expect.VisualStudio.Extensions.Commands
{
    /*public class SpecificationCommand : OleMenuCommand
    {
        public SpecificationCommand(EventHandler hnd, CommandID id)
            : base(hnd, id)
        {
            this.BeforeQueryStatus += new EventHandler(CmdBeforeQueryStatus);
        }

        void CmdBeforeQueryStatus(object sender, EventArgs e)
        {
            IExpectVSService expectService = (IExpectVSService)Package.GetGlobalService(typeof(SExpectVSService));

            var resolution = expectService.GetCurrentSelectionResolution();
            if (resolution == null)
            {
                Visible = false;
                return;
            }

            if (resolution.IsSpecification)
            {
                (sender as OleMenuCommand).Visible = true;
            }
            else
            {
                (sender as OleMenuCommand).Visible = false;
            }
        }
    }*/
}
